filterNot()
inverts the role of the lambda expression: only those where
the expression evaluates to false
are passed along.
Here, the filter expression looks for numbers evenly divisible by 3
... but
those three values (3
, 6
, 9
) are not printed, while the rest are.
You can learn more about this in:
Tags: